package net.huashitong.ssydt.msg.entity.vo;


import net.huashitong.ssydt.msg.entity.SsMsgRemindConfig;

import java.io.Serializable;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.11.14
 */
public class RemindConfigVO implements Serializable {

    private static final long serialVersionUID = -7815069942482243270L;

    private Boolean totalSwitch;//总开关

    private Boolean commentSwitch;//评论开关

    private Boolean praiseSwitch;//点赞开关

    public RemindConfigVO(SsMsgRemindConfig ssMsgRemindConfig) {
        this.totalSwitch = ssMsgRemindConfig.getTotalSwitch() == 1;
        this.commentSwitch = ssMsgRemindConfig.getCommentSwitch() == 1;
        this.praiseSwitch = ssMsgRemindConfig.getPraiseSwitch() == 1;
    }

    public RemindConfigVO() {
    }

    public Boolean getTotalSwitch() {
        return totalSwitch;
    }

    public void setTotalSwitch(Boolean totalSwitch) {
        this.totalSwitch = totalSwitch;
    }

    public Boolean getCommentSwitch() {
        return commentSwitch;
    }

    public void setCommentSwitch(Boolean commentSwitch) {
        this.commentSwitch = commentSwitch;
    }

    public Boolean getPraiseSwitch() {
        return praiseSwitch;
    }

    public void setPraiseSwitch(Boolean praiseSwitch) {
        this.praiseSwitch = praiseSwitch;
    }
}
